package homework_2.tv;

/**
 * @author 朱
 * @date 2019031821:38
 */
public class Hisense extends TV {
    public boolean d3=true;

    public Hisense(String brand, byte size, boolean d3) {
        super(brand, size);
        this.d3 = d3;
    }

    @Override
     public void output(){
         if (d3){
             System.out.println("电视机的品牌是"+brand+",电视机的大小是："+size+"是3D电视");
         }else {
             output();
         }
     }
}
